--------------------------------  AntiBan System --------------------------------

local nicks = {}

local function EzekAntiBan()
	for i = 1, table.Count(nicks) do
		table.remove(nicks, i)
	end
	for _, faggot in pairs(player.GetAll()) do
		if faggot:Nick() != minge:Nick() then --just to be safer
			table.insert(nicks, faggot:Nick()..string.char(03)) --no space after the name yay
		end
	end
    if table.Count(nicks) > 0 then
		RunConsoleCommand("setinfo", "name", nicks[math.random(1, table.Count(nicks))])
	end
end

concommand.Add("wots_toggleimmunity", function()
    if canban then
	    canban = false
		hook.Add("Think","ChangeName",EzekAntiBan)
        SlobNotify("Toggle immunity: ON")
	elseif !canban then
	    canban = true
		hook.Remove("Think","ChangeName")
		SlobNotify("Toggle immunity: OFF")
	end
end)
------------------------------------------------------------------------------